package mumber;

import mediator.Zh0202Mediator;

/**
 * @author: zh
 * @date: 2021/12/16 16:32
 * @version: 1.0
 */
public class Zh0202_202Flight extends Zh0202Flight {
    public Zh0202_202Flight(Zh0202Mediator mediator) {
        this.mediator = mediator;
    }

    @Override
    public void requestLanding(String terminal) {
        System.out.println("202航班正在申请在"+terminal+"降落");
        mediator.receiveMessage(this,terminal);
    }

    @Override
    public void receiveMessage(String message) {
        System.out.println(message);
    }

    @Override
    public String toString() {
        return "202Flight";
    }
}
